package com.weixinli.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import com.weixinli.beans.FmMusic;
import com.weixinli.beans.PageInfo;
import com.weixinli.dao.IFmMusicDao;
@Repository("iFmMusicDao")
public class FmMusicDaoImpl implements IFmMusicDao{
	private SqlSession sqlSesson;
	
	public List<FmMusic> findAll(PageInfo pageInfo) {
		return sqlSesson.selectList("findAlls",pageInfo);
	}
	public FmMusic selectMid(FmMusic fm) {
		return sqlSesson.selectOne("selectMid",fm);
	}

	public int addFmMusic(FmMusic mu) {
		return sqlSesson.insert("addFmMusic", mu);
	}
	public int updateMusic(FmMusic fm) {
		return sqlSesson.update("updateMusic",fm);
	}
	public int delFmMusic(FmMusic mu) {
		return sqlSesson.delete("delFmMusic",mu);
	}

	public int modFmMusic(FmMusic mu) {
		return 0;
	}

	public int getTotalFmMusic() {
		return 0;
	}

	public List<FmMusic> findtype(String type) {
		return null;
	}

	public List<FmMusic> findOne(Integer id) {
		return null;
	}

	public List<FmMusic> findDimMusic(String str1, String str2) {
		return null;
	}

	public List<FmMusic> findDimsMusic(String str) {
		return null;
	}
	@Resource(name="sqlSession")
	public void setSqlSesson(SqlSession sqlSesson) {
		this.sqlSesson = sqlSesson;
	}
}
